home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / By the Book / Learn C++ (CodeWarrior) / Chap 04.03 - protoTester / protoTester.cp < prev    next >
Text File  |  1995-10-20  |  328b  |  24 lines

  1. #include <iostream.h>
  2.  
  3. void    MyFunc( short param1,
  4.                 short param2 = 0,
  5.                 short param3 = 0 );
  6.  
  7. int    main()
  8. {
  9.     MyFunc( 1 );
  10.     MyFunc( 1, 2 );
  11.     MyFunc( 1, 2, 3 );
  12.     
  13.     return 0;
  14. }
  15.  
  16. void    MyFunc( short param1,
  17.                 short param2,
  18.                 short param3 )
  19. {
  20.     cout << "MyFunc( " << param1
  21.         << ", " << param2
  22.         << ", " << param3
  23.         << " )\n";
  24. }